/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.activity.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 订单(企业 用户购买卡订单)表 VO
 *
 * @author csg
 * @date 2021-05-21 14:22:31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "订单(企业 用户购买卡订单)表 VO")
public class VOrderVo extends Model<VOrderVo> {
private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @ApiModelProperty(value="")
    private Long id;
    /**
     * 订单编号
     */
    @ApiModelProperty(value="订单编号")
    private String orderCode;
    /**
     * 活动ID
     */
    @ApiModelProperty(value="活动ID")
    private Long activityId;
    /**
     * 当前购买活动ID
     */
    @ApiModelProperty(value="当前购买活动ID")
    private Long orderActivityId;
    /**
     * 用户ID
     */
    @ApiModelProperty(value="用户ID")
    private Long personId;
    /**
     * 企业ID
     */
    @ApiModelProperty(value="企业ID")
    private Long enterpriseId;
    /**
     * 客戶类型：0个人  1企业
     */
    @ApiModelProperty(value="客戶类型：0个人  1企业")
    private Integer customerType;
    /**
     * 购买类型（订单来源）： 0小程序  1代客下单
     */
    @ApiModelProperty(value="购买类型（订单来源）： 0小程序  1代客下单")
    private Integer purchaseType;
    /**
     * 购买数量
     */
    @ApiModelProperty(value="购买数量")
    private Integer purchaseNum;
    /**
     * 应付金额
     */
    @ApiModelProperty(value="应付金额")
    private BigDecimal copeAmount;
    /**
     * 实付金额
     */
    @ApiModelProperty(value="实付金额")
    private BigDecimal payAmount;
    /**
     * 优惠金额
     */
    @ApiModelProperty(value="优惠金额")
    private BigDecimal discountAmount;
    /**
     * 人工改价
     */
    @ApiModelProperty(value="人工改价")
    private BigDecimal manualUpdate;
    /**
     * 支付方式：支付方式： 0微信支付  1现金  2对公转账
     */
    @ApiModelProperty(value="支付方式：支付方式： 0微信支付  1现金  2对公转账")
    private Integer payType;
    /**
     * 支付单号
     */
    @ApiModelProperty(value="支付单号")
    private String transactionId;
    /**
     * 支付状态 0 待支付 1已完成  2已过期3已取消
     */
    @ApiModelProperty(value="支付状态 0 待支付 1已完成  2已过期3已取消")
    private Integer payStatus;
    /**
     * 支付时间
     */
    @ApiModelProperty(value="支付时间")
	@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime payTime;
    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private Long createUser;
    /**
     * 修改人
     */
    @ApiModelProperty(value="修改人")
    private Long updateUser;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    private LocalDateTime updateTime;
    /**
     * 0可用1删除
     */
    @ApiModelProperty(value="0可用1删除")
    private Integer delFlag;
    /**
     * 租户ID
     */
    @ApiModelProperty(value="租户ID",hidden=true)
    private Integer tenantId;
    }
